package com.ll.domain.ranking.producer;

import com.ll.domain.ranking.dto.RankingDTO;
import com.ll.domain.ranking.enums.RankingTypeEnum;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationEvent;

import java.util.List;
import java.util.Map;

@Slf4j
@Getter
public class CleanRankingEvent extends ApplicationEvent {

    private Map<RankingTypeEnum, List<RankingDTO>> topMap;

    public CleanRankingEvent(Map<RankingTypeEnum, List<RankingDTO>> userIntegral) {
        super(userIntegral);
        this.topMap = userIntegral;
        log.info("CleanRankingEvent success! map.size: {}",userIntegral.size());
    }

}
